<div id="box_display">
<div id="list_table">
                  <div id="paging" class="pagination" style="margin-bottom: 10px">
                      
                      <form action="<?php echo site_url("home_admin/listCertificate1/1") ?>" method="post"> 
                        <table>
                            <tr>
                                <td width="100px">Date active</td>
                                <td><input name="date" type="date" value="<?php echo $date ?>"></td>
                            </tr>
                            <tr>
                                <td width="100px">Status pay</td>
                                <td>
                                    <select name="status" >
                                        <option value="0" <?php if($select == 0) echo "selected='selected'" ?>>No</option>
                                        <option value="1" <?php if($select == 1) echo "selected='selected'" ?>>Yes</option>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <input type="submit" value="Tìm kiếm">
                                </td>
                            </tr>
                        </table>
                      </form>
                  </div>

                    <table width="75%" cellpadding="2" cellspacing="2">
                          <tbody>
                          <tr>
                            <td width="11%" class="table_titile">Code</td>
                            <td width="11%" class="table_titile">Name</td>
                            <td width="11%" class="table_titile">Email</td>
                            <td width="11%" class="table_titile">Phone</td>
                            <td width="11%" class="table_titile">Add date</td>
                            <td width="11%" class="table_titile">Status</td>
                            <td width="11%" class="table_titile">Total</td>
                            <td width="11%" class="table_titile">Product</td>
                            <td width="11%" class="table_titile">Modify</td>
                          </tr>
                          <?php
                            $count=0;
                                foreach ($data as $item) {
                                    $count++;
                                    if($count%2==0)
                                        echo "<tr class='row_chan'>";
                                    else
                                        echo "<tr>";
                                    echo '<td>'.$item['id'].'</td>';
                                    echo '<td>'.$item['fullname'].'</td>';
                                    echo '<td>'.$item['email'].'</td>';
                                    echo '<td>'.$item['phone'].'</td>';
                                    echo '<td>'.$item['add_date'].'</td>';
                                    if($item['status']==1){
                                        echo '<td>Đã thanh toán</td>';
                                    }else{
                                        echo '<td>Chưa thanh toán</td>';
                                    }
                                    echo '<td>'.$item['total'].'</td>';
                                    echo '<td class="alt">'.'<a href="'.site_url('home_admin/showDetailProduct')."/".$item['id'].'">Detail</a>'.'</td>';
                                    echo '<td class="alt">
                                            <a href="'.site_url('home_admin/editBill')."/".$item['id'].'">Edit</a>
                                            <a href="'.site_url('home_admin/deleteBill')."/".$item['id'].'" >Delete</a>
                                         </td>';
                                    echo "</tr>";  
                                }
            
                          ?>
                    </tbody>
                   </table>
</div>
</div>